# coding: utf-8
from google.appengine.ext import db

class UserProfile(db.Model):
	"""
	Профиль пользователя
	"""
	user_id = db.StringProperty()
	email = db.StringProperty()
	hide_email = db.BooleanProperty(default = False)
	nick = db.StringProperty()
	sex = db.StringProperty()
	lang = db.StringProperty()
	summary = db.TextProperty(default = "")
	
	def get_display_name(self):
		return self.nick or self.email or self.user_id

